package hn.cch.elk_log.controllor;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping(value = "/log")
@Controller
public class LogController {

    private static final Logger logger = LoggerFactory.getLogger(LogController.class);


    @RequestMapping(value = "/index", method = RequestMethod.GET)
    @ResponseBody
    public String index(){
        logger.info("LogController.index");
        return "{\"time\":\"2020-11-18 10:10:10\"}";
    }
}
